home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / mmailp.idb / usr / lib / Zmail / samples / zscript / reopen.zsc.z / reopen.zsc
Encoding:
Text File  |  1997-01-22  |  707 b   |  27 lines

  1. # Sample Z-Script functions: reopen, call_reopen
  2. #              button: Re-Open Folder
  3.  
  4. function reopen() {
  5. #%
  6. #       reopen [-f] [-N] [-r]
  7. #
  8. # Close the current folder without updating, then reopen it.
  9. #
  10. #   -f       apply the system mailbox (folder) filters
  11. #   -N       do not display the list of header summaries
  12. #   -r       read-only mode (cannot update changes)
  13. #%
  14.     eval "builtin close -n ; builtin open $* $thisfolder"
  15. }
  16.  
  17. # The above function is not appropriate for use from a GUI button,
  18. # so we put a wrapper around it with slightly different help text.
  19.  
  20. function call_reopen() {
  21. #%
  22. # Close the current folder without updating, then reopen it.
  23. #%
  24.     reopen
  25. }
  26. button -n "Re-Open Folder" call_reopen
  27.